#ifndef LinearInterpolationMap_h
#define LinearInterpolationMap_h
#include <stdlib.h>
#include "ValuePoint.h"

struct ValuePointRange {
	ValuePoint* lowerPoint;
	ValuePoint* upperPoint;
};

class LinearInterpolationMap {
	ValuePoint **valuePoints;
	int numberOfPoints;
	ValuePointRange getValuePointRangeForInputValue(int);
	public:
		void init();
		int mapInputValue(int);
		void addPoint(ValuePoint *);
};

LinearInterpolationMap* newLinearInterpolationMap();

#endif
